package com.toycloud.business.domain.bo;

import com.toycloud.common.core.validate.AddGroup;
import com.toycloud.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.toycloud.common.core.domain.BaseEntity;

/**
 * demandLog业务对象 demand_log
 *
 * @author binlu6
 * @date 2024-11-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DemandLogBo extends BaseEntity {

    /**
     * 
     */
    private Integer id;

    /**
     * 需求id
     */
    @NotNull(message = "需求id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer did;

    /**
     * 变更后版本
     */
//    @NotBlank(message = "变更后版本不能为空", groups = { AddGroup.class, EditGroup.class })
    private String version;

    /**
     * 0-产物设计变更，1-原需求变更
     */
    @NotBlank(message = "0-产物设计变更，1-原需求变更不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 1.产品交付产物
2.交互交付产物
3.UI交付产物
4.资源交付产物
     */
//    @NotBlank(message = "1.产品交付产物 2.交互交付产物 3.UI交付产物 4.资源交付产物不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productType;

    /**
     * 1-已删除，0-未删除
     */
    private String flag;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;


}
